//
//  GravityAgent.h
//  GravityControl
//
//  Created by Javier Quevedo on 10/06/2009.
//  Copyright 2009 VRIJE. All rights reserved.
//


#import <Foundation/Foundation.h>


#pragma mark Dispatchable notifications

#define nGestureUpRight	@"GestureUpRight"
#define nGestureUpLeft	@"GestureUpLeft"
#define nGestureDownRight	@"GestureDownRight"
#define nGestureDownLeft	@"GestureDownLeft"
#define nGravityUpdated	@"GestureDownLeft"

@interface GravityAgent : NSObject <UIAccelerometerDelegate>{
	UIAcceleration *velocity;
	UIAcceleration *accel;

	BOOL connected;
	NSInteger xThreshold;
	NSInteger yThreshold;
	NSInteger zThreshold;

	NSNumber *angle;
}
+ (GravityAgent*)sharedAgent;

@property (nonatomic, retain) UIAcceleration *velocity;
@property (nonatomic, retain) UIAcceleration *accel;
@property (nonatomic) 	NSInteger xThreshold;
@property (nonatomic) 	NSInteger yThreshold;
@property (nonatomic) 	NSInteger zThreshold;
@property (nonatomic, retain) NSNumber *angle;
@end
